package pers.zxk.jlytnews.entity;

public class News {
    private int id;
    private int type;
    private String title;
    private String icon;
    private String url;
    private String contents;
    private String date;
    private String source;

    public News() {
    }

    public News(int type, String title, String icon, String url, String contents, String date, String source) {
        this.type = type;
        this.title = title;
        this.icon = icon;
        this.url = url;
        this.contents = contents;
        this.date = date;
        this.source = source;
    }

    public News(int id, int type, String title, String icon, String url, String contents, String date, String source) {
        this.id = id;
        this.type = type;
        this.title = title;
        this.icon = icon;
        this.url = url;
        this.contents = contents;
        this.date = date;
        this.source = source;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getContents() {
        return contents;
    }

    public void setContents(String contents) {
        this.contents = contents;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source_name) {
        this.source = source_name;
    }
}
